#!/usr/bin/make -f
# export DH_VERBOSE=1

PREFIX := debian/htpc-utils

clean:
	dh_testdir
	dh_testroot
	python ./setup.py clean
	dh_clean

build:

install: build
	dh_testdir
	dh_testroot
	dh_installchangelogs
	dh_installexamples
	dh_installdirs
	python ./setup.py sphinx
	dh_installdocs .build/html
	python ./setup.py install --root $(PREFIX) --no-compile
	dh_install

binary-arch: build install

binary-indep: build install
	dh_testdir
	dh_testroot
	dh_compress
	dh_fixperms
	dh_pysupport
	# dh_installinit --name=htpc-utils --update-rcd-params="defaults 90"
	dh_installdeb
	dh_gencontrol
	dh_md5sums
	dh_builddeb

binary: binary-indep binary-arch

.PHONY: build clean binary-indep binary-arch binary install configure
